/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package us.icitap.cm.business.entities.regmin;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import us.icitap.cm.business.entities.BaseEntity;

/**
 *
 * @author klau
 */
@Entity
@Table(name = "STATES", schema="REGMIN")
public class States  implements  Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "CODE_STATE", nullable = false)
    private String codeState;
    
    @Column(name = "TAG", nullable = false)
    private String tag;
   
    public States() {
    }

    public States(String codeState) {
        this.codeState = codeState;
    }

    public States(String codeState, String tag, String recordUser) {
        this.codeState = codeState;
        this.tag = tag;
     
    }

    public String getCodeState() {
        return codeState;
    }

    public void setCodeState(String codeState) {
        this.codeState = codeState;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

   
    @Override
    public int hashCode() {
        int hash = 0;
        hash += (codeState != null ? codeState.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof States)) {
            return false;
        }
        States other = (States) object;
        if ((this.codeState == null && other.codeState != null) || (this.codeState != null && !this.codeState.equals(other.codeState))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return this.getTag();
    }

}
